<?php 		
			ob_start();	
			session_start();
			if(isset($_GET["logout"])){
				$logout = $_GET["logout"];
				if($logout=="true"){
					session_unset();
					session_destroy();  					
					require_once("head.html");
					include("start.php");
				}
			}else{
				if(!isset($_SESSION)){ session_start();}	
				require_once("head.html");	
				if(isset($_GET["page"])){
					$page = $_GET["page"];
					if($page=="start"){						
   					include("start.php");
   				}else if($page=="registration"){
   					include("register.php");
   				}else if($page=="overview"){
   					if (isset($_GET["del"])){
   						$del = $_GET["del"];
   					}
					if (isset($_GET["back"])){
   						$back = $_GET["back"];
   					}					
   					include("overview.php");
   				}else if($page=="edit"){
   					$goalid = $_GET["goalid"];
					include("editgoal.php");
   				}else{
   					if(isset($_GET['login_error'])){
						$loginErrorMessage = "eMail and/or password is/are wrong.";
					} 				  			
   					include("start.php");
   				}
   			}else{
   				if(isset($_GET['login_error'])){
						$loginErrorMessage = "eMail and/or password is/are wrong.";
				}
   				include("start.php");
   			}
   		}	
?>
</html>